#ifndef  __PTHREAD_H__
#define  __PTHREAD_H__

 #include "lvgl/lvgl.h"
#include "lvgl/demos/lv_demos.h"
#include <unistd.h>
#include <pthread.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

extern pthread_mutex_t ui_mutex; // 声明全局互斥锁
extern int game_ui_requested;
extern int appui;
/*
// 添加UI更新标志和函数
extern int ui_update_needed;
typedef void (*ui_update_cb_t)(void*);
extern ui_update_cb_t ui_update_callback;
extern void* ui_update_arg;

void safe_ui_update(ui_update_cb_t cb, void* arg);*/

pthread_mutex_t mutex; 
lv_obj_t* screen;
void *game(void *arg);
void *game2(void *arg);
void *tem(void *arg);



#endif